package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.entity.dto.DepartmentSearchDTO;
import com.hy.entity.pojo.HyDepartment;
import com.hy.entity.vo.HyDepartmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HyDepartmentMapper extends BaseMapper<HyDepartment> {


    List<HyDepartmentVO> showDepartmentsByDto(@Param("page")Page page, @Param("dto")DepartmentSearchDTO dto);

    Integer findDeptIDByUnitIDAndDeptName(@Param("unitId") Integer unitId,@Param("deptName") String managerDeptName);


    List<HyDepartmentVO> showDept(@Param("dto") DepartmentSearchDTO departmentSearchDTO);

    List<HyDepartmentVO> findHyPropertyListByMap(Map<String, Object> queryCondition);
}
